/*
 * @Author: wangkg wangkegui@longfor.com
 * @Date: 2024-06-17 16:40:12
 * @Description:
 */
import { request } from '../request';
import type { getMenuListResultModel } from './model/menuModel';

enum Api {
  GetMenuList = '/baseService/v1/app/currentUser/menus'
}

/**
 * @description: Get user menu based on id
 */

// 获取当前用户菜单信息
export function getMenuList() {
  // return defHttp.get<getMenuListResultModel>({
  //   url: Api.GetMenuList,
  // });
  return request<getMenuListResultModel>(
    {
      url: Api.GetMenuList,
      method: 'get'
    },
    { isTransformResponse: true }
  );
}
